package com.java.controller;

import com.java.admin.admin.service.LoginService;
import com.java.database.entity.Caradmininfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@Controller
public class LoginController {
    // @Authorrization(value = Role.ADMIN)
    //当用户访问/的时候自动跳转到login界面
    @RequestMapping("/")
    public String loginJsp(){
        return "redirect:/admin/login.html";
    }
}
